﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Category/Category.master"
    Inherits="System.Web.Mvc.ViewPage<AFI.Speargun.Web.Models.Category>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    类别附加信息定义 - 编辑 -
    <%=Html.Encode(Model.Appellation) %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        编辑 -
        <%= Html.Encode(Model.Appellation) %></h2>
    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {%>
    <fieldset>
        <legend>类别附加信息定义</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="data-table">
            <tr>
                <th scope="col">
                    项目
                </th>
                <th scope="col">
                    启用
                </th>
                <th scope="col">
                    名称
                </th>
                <th scope="col">
                    备注
                </th>
                <th scope="col">
                    排序
                </th>
            </tr>
            <%foreach (var i in Model.AssetEntryAdditionalDefinitionSchema)
              { %>
            <tr>
                <th scope="row">
                    <label for="<%= i.FieldName %>_Appellation">
                        <%= i.FieldName%></label>
                </th>
                <td align="center">
                    <%= Html.CheckBox(i.FieldName + "_Enable", i.Enable, new { @class = "input-box" })%>
                </td>
                <td>
                    <%= Html.TextBox(i.FieldName + "_Appellation", i.Appellation, new { @class = "input-box", @size = 20 })%>
                </td>
                <td>
                    <%= Html.TextBox(i.FieldName + "_Remark", i.Remark, new { @class = "input-box", @size = 20 })%>
                </td>
                <td>
                    <%= Html.TextBox(i.FieldName + "_Order", i.Order, new { @class = "input-box", @size = 5 })%>
                </td>
            </tr>
            <%} %>
        </table>
        <p>
            <input type="submit" value="提交" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%=Html.ActionLink("返回到列表", "Index", new { id = Model.CategoryId })%>
    </div>
</asp:Content>
